package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("voice")
public class Voice implements Serializable {

    private ObjectId id; //主键id
    private Long userId; //用户id
    private String voiceUrl; //上传的语音路径
    private Long created; //发布时间
    private Integer start; //状态(0/1)是否已被接收过
}
